<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Patient>" %>
<%@ Import Namespace="RMH.Entities"%>

<h3>Notes</h3>
<% foreach (var item in Model.Notes.OrderByDescending(n => n.Date)) { %>
    <div class="note">
        <%= Html.Encode(item.Body) %><p />
        <em>Date: <%= Html.Encode(String.Format("{0:G}", item.Date)) %>  By: <%= Html.Encode(String.IsNullOrEmpty(item.StaffId) ? "Unknown" : item.StaffId)%></em>
        <p />
        
    </div>
<% } %>

